AnnotationSpec.fromJson constructor

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

Implementation

factory AnnotationSpec.fromJson(Map<String, dynamic> json) {
  return AnnotationSpec(
    name: json['name'] ?? '',
    displayName: json['displayName'] ?? '',
    createTime: decodeCustom(json['createTime'], protobuf.Timestamp.fromJson),
    updateTime: decodeCustom(json['updateTime'], protobuf.Timestamp.fromJson),
    etag: json['etag'] ?? '',
  );
}