EnvironmentResource.fromJson constructor

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

Implementation

factory EnvironmentResource.fromJson(Map<String, dynamic> json) {
  return EnvironmentResource(
    kind: _parseEnvironmentKind(json['kind'] as String),
    environmentId: json['environment_id'] as String,
    name: json['name'] as String,
    createdAt: json['created_at'] as String,
    state: EnvironmentState.active,
  );
}