EntityDescription.fromJson constructor

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

Implementation

factory EntityDescription.fromJson(Map<String, dynamic> json) {
  return EntityDescription(
    arn: json['arn'] as String?,
    createdAt: timeStampFromJson(json['createdAt']),
    definition: json['definition'] != null
        ? DefinitionDocument.fromJson(
            json['definition'] as Map<String, dynamic>)
        : null,
    id: json['id'] as String?,
    type: (json['type'] as String?)?.toEntityType(),
  );
}