Preconditions.fromJson constructor

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

Creates a Preconditions from JSON data.

Implementation

factory Preconditions.fromJson(Map<String, dynamic> json) {
  final tempResourceVersionJson = json['resourceVersion'];
  final tempUidJson = json['uid'];

  final String? tempResourceVersion = tempResourceVersionJson;
  final String? tempUid = tempUidJson;

  return Preconditions(
    resourceVersion: tempResourceVersion,
    uid: tempUid,
  );
}