Link.fromJson constructor

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

Implementation

factory Link.fromJson(Map<String, dynamic> json) {
  return Link(
    name: json['name'] ?? '',
    description: json['description'] ?? '',
    createTime: decodeCustom(json['createTime'], Timestamp.fromJson),
    lifecycleState:
        decodeEnum(json['lifecycleState'], LifecycleState.fromJson) ??
        LifecycleState.$default,
    bigqueryDataset: decode(
      json['bigqueryDataset'],
      BigQueryDataset.fromJson,
    ),
  );
}