fromJson static method

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

Implementation

static MicrowaveStage fromJson(Map<String, dynamic> json) => MicrowaveStage(
      wattage: (json['wattage'] as num?)?.toInt(),
      stage: (json['stage'] as num?)?.toInt(),
      id: json['id'],
      created:
          json['created'] != null ? DateTime.parse(json['created']) : null,
      creator: json['creator'],
      updated:
          json['updated'] != null ? DateTime.parse(json['updated']) : null,
      updater: json['updater'],
    );