Recipes.fromJson constructor

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

Implementation

factory Recipes.fromJson(Map<String, dynamic> json) {
  return Recipes(
    configure: (json['Configure'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    deploy: (json['Deploy'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    setup: (json['Setup'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    shutdown: (json['Shutdown'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    undeploy: (json['Undeploy'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}