encode static method

String encode(
  1. ProjectOperationProfile profile
)

Encodes a profile into the JSON text of a declaration.

The text is the evidence shape of the profile, indented for a file a person reads. decode(encode(profile)) carries the same shape back.

Implementation

static String encode(ProjectOperationProfile profile) =>
    const JsonEncoder.withIndent('  ').convert(profile.toJson());