BuilderJob.fromJson constructor

BuilderJob.fromJson(
  1. Map<String, dynamic> json,
  2. Variables variables
)

Creates a BuilderJob from JSON configuration.

  • json - JSON object containing build configuration
  • variables - Variable processor for argument substitution

Returns a new BuilderJob instance with platform-specific arguments parsed from the JSON configuration.

Implementation

factory BuilderJob.fromJson(Map<String, dynamic> json, Variables variables) {
  return BuilderJob(
    android: json["android"] != null
        ? android_arguments.Arguments.fromJson(
            json["android"],
            variables: variables,
          )
        : null,
    ios: json["ios"] != null
        ? ios_arguments.Arguments.fromJson(json["ios"], variables: variables)
        : null,
  );
}