HiveJsonSerDe.fromJson constructor

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

Implementation

factory HiveJsonSerDe.fromJson(Map<String, dynamic> json) {
  return HiveJsonSerDe(
    timestampFormats: (json['TimestampFormats'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}