GetCaseResult.fromMap constructor

GetCaseResult.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory GetCaseResult.fromMap(Map<String, dynamic> map) {
  return GetCaseResult(
    classification: CaseClassificationResponse.fromMap((map['classification']! as Map).cast<String, dynamic>()),
    contactEmail: map['contactEmail'] as String,
    createTime: map['createTime'] as String,
    creator: ActorResponse.fromMap((map['creator']! as Map).cast<String, dynamic>()),
    description: map['description'] as String,
    displayName: map['displayName'] as String,
    escalated: map['escalated'] as bool,
    languageCode: map['languageCode'] as String,
    name: map['name'] as String,
    priority: map['priority'] as String,
    state: map['state'] as String,
    subscriberEmailAddresses: (map['subscriberEmailAddresses'] as List).cast<String>(),
    testCase: map['testCase'] as bool,
    timeZone: map['timeZone'] as String,
    updateTime: map['updateTime'] as String,
  );
}