fromJson static method

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

Implementation

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

  return Seconds(seconds: ((json['seconds'] as num?) ?? 0.0).toDouble());
}