merge method

void merge(
  1. EnvironmentData other
)

Implementation

void merge(EnvironmentData other) {
  for (var env in other.environments.keys) {
    var otherEnvData = other.environments[env]!;
    if (environments.containsKey(env)) {
      var envData = environments[env]!;
      for (var key in otherEnvData.keys) {
        envData[key] = otherEnvData[key]!;
      }
    } else {
      environments[env] = otherEnvData;
    }
  }
}