ObjectFieldSelector.fromJson constructor

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

Creates a ObjectFieldSelector from JSON data.

Implementation

factory ObjectFieldSelector.fromJson(Map<String, dynamic> json) {
  final tempApiVersionJson = json['apiVersion'];
  final tempFieldPathJson = json['fieldPath'];

  final String? tempApiVersion = tempApiVersionJson;
  final String tempFieldPath = tempFieldPathJson;

  return ObjectFieldSelector(
    apiVersion: tempApiVersion,
    fieldPath: tempFieldPath,
  );
}