PatchSource.fromJson constructor

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

Implementation

factory PatchSource.fromJson(Map<String, dynamic> json) {
  return PatchSource(
    configuration: json['Configuration'] as String,
    name: json['Name'] as String,
    products: (json['Products'] as List)
        .whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}