FieldLastUsed.fromJson constructor

FieldLastUsed.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory FieldLastUsed.fromJson(Map<String, Object?> json) {
  return FieldLastUsed(
    type: json[r'type'] != null
        ? FieldLastUsedType.fromValue(json[r'type']! as String)
        : null,
    value: DateTime.tryParse(json[r'value'] as String? ?? ''),
  );
}