Instance.fromJson constructor

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

Implementation

factory Instance.fromJson(Map<String, dynamic> json) {
  return Instance(
    id: json['Id'] as String,
    attributes: (json['Attributes'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
    creatorRequestId: json['CreatorRequestId'] as String?,
  );
}