TimeStamp.fromJson constructor

TimeStamp.fromJson(
  1. Map map
)

Implementation

factory TimeStamp.fromJson(Map map) {
  return TimeStamp(
    timestampNanos: map['timestamp_nanos'] ??
        DateTime.now().millisecondsSinceEpoch.toBn(),
  );
}