Example.fromJson constructor

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

Implementation

factory Example.fromJson(Map<String, dynamic> json) {
  return Example(
    storedContentsExample: decode(
      json['storedContentsExample'],
      StoredContentsExample.fromJson,
    ),
    displayName: json['displayName'] ?? '',
    exampleId: json['exampleId'] ?? '',
    createTime: decodeCustom(json['createTime'], protobuf.Timestamp.fromJson),
  );
}