Session.fromJson constructor

Session.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Session.fromJson(Map<String, dynamic> json) {
  return Session(
    details: json['Details'] as String?,
    documentName: json['DocumentName'] as String?,
    endDate: timeStampFromJson(json['EndDate']),
    outputUrl: json['OutputUrl'] != null
        ? SessionManagerOutputUrl.fromJson(
            json['OutputUrl'] as Map<String, dynamic>)
        : null,
    owner: json['Owner'] as String?,
    sessionId: json['SessionId'] as String?,
    startDate: timeStampFromJson(json['StartDate']),
    status: (json['Status'] as String?)?.toSessionStatus(),
    target: json['Target'] as String?,
  );
}