ServiceActionDetail.fromJson constructor

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

Implementation

factory ServiceActionDetail.fromJson(Map<String, dynamic> json) {
  return ServiceActionDetail(
    definition: (json['Definition'] as Map<String, dynamic>?)?.map(
        (k, e) => MapEntry(k.toServiceActionDefinitionKey(), e as String)),
    serviceActionSummary: json['ServiceActionSummary'] != null
        ? ServiceActionSummary.fromJson(
            json['ServiceActionSummary'] as Map<String, dynamic>)
        : null,
  );
}