BuildConfig.fromJson constructor

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

Implementation

BuildConfig.fromJson(Map<String, dynamic> json) {
  ios = BuildInfo.fromJson(JSON(json)['ios']
      .mapValue
      .map((key, value) => MapEntry(key.toString(), value)));
  android = BuildInfo.fromJson(JSON(json)['android']
      .mapValue
      .map((key, value) => MapEntry(key.toString(), value)));
}