fromDynamic static method

GoldenTestImages? fromDynamic(
  1. dynamic map
)

Implementation

static GoldenTestImages? fromDynamic(dynamic map) {
  GoldenTestImages? result;

  if (map != null) {
    result = GoldenTestImages(
      deviceInfo: TestDeviceInfo.fromDynamic(map['deviceInfo']),
      goldenHashes: map['goldenHashes'] == null
          ? null
          : Map<String, String>.from(map['goldenHashes']),
      id: map['id'],
      suiteName: map['suiteName'],
      testName: map['testName'],
      testVersion: JsonClass.parseInt(map['testVersion']) ?? 0,
      timestamp: JsonClass.parseUtcMillis(map['timestamp']),
    );
  }

  return result;
}