MigrationReport.decode constructor

MigrationReport.decode(
  1. Map<String, Object?> json
)

Decode a report from json

Implementation

factory MigrationReport.decode(Map<String, Object?> json) =>
    MigrationReport._(
      migrationId: json["migrationId"]!.toString(),
      executedOn: DateTime.parse(json["executedOn"]!.toString()),
      result: parseMigrationResult(json["result"]?.toString()),
      errorMessage: json["errorMessage"]?.toString(),
    );