SerializableTimeSignal.fromMap constructor

SerializableTimeSignal.fromMap(
  1. Map<Object?, Object?> map
)

Creates a SerializableTimeSignal from a map structure, typically received from the platform-specific code.

The map must contain:

Implementation

factory SerializableTimeSignal.fromMap(Map<Object?, Object?> map) {
  return SerializableTimeSignal(
    acquisitionEstimatedErrorMillis:
        map['acquisitionEstimatedErrorMillis'] as int,
    currentInstant:
        map['currentInstant'] != null
            ? SerializableCurrentInstant.fromMap(
              map['currentInstant'] as Map<Object?, Object?>,
            )
            : null,
  );
}