CreationEventDetails.fromJson constructor
CreationEventDetails.fromJson(
- Map<String, dynamic> json
)
Implementation
factory CreationEventDetails.fromJson(Map<String, dynamic> json) {
return CreationEventDetails(
fetchResult: DeviceBoundSessionFetchResult.fromJson(
json['fetchResult'] as String,
),
newSession: json.containsKey('newSession')
? DeviceBoundSession.fromJson(
json['newSession'] as Map<String, dynamic>,
)
: null,
failedRequest: json.containsKey('failedRequest')
? DeviceBoundSessionFailedRequest.fromJson(
json['failedRequest'] as Map<String, dynamic>,
)
: null,
);
}