WriteRequest.fromJson constructor

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

Implementation

factory WriteRequest.fromJson(Map<String, dynamic> json) {
  return WriteRequest(
    deleteRequest: json['DeleteRequest'] != null
        ? DeleteRequest.fromJson(
            json['DeleteRequest'] as Map<String, dynamic>)
        : null,
    putRequest: json['PutRequest'] != null
        ? PutRequest.fromJson(json['PutRequest'] as Map<String, dynamic>)
        : null,
  );
}