fromJson static method

DiffEntityTypeReplace? fromJson(
  1. Map<String, dynamic>? json
)
override

Implementation

static DiffEntityTypeReplace? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return DiffEntityTypeReplace(oldText: (json['old_text'] as String?) ?? '');
}